home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / othergnu / texinf~1.zoo / texinfo.st / makeinfo / Makefile.st next >
Encoding:
Makefile  |  1993-06-23  |  2.3 KB  |  93 lines

  1. # Makefile for GNU makeinfo.  -*- Indented-Text -*-
  2. # Atari ST version
  3. # Copyright (C) 1993 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #### Start of system configuration section. ####
  20.  
  21. srcdir = .
  22. VPATH = $(srcdir):$(common)
  23.  
  24. common = $(srcdir)/../libtxi
  25.  
  26. CC = cgcc
  27. #CC = gcc
  28. RM    = rm -f
  29. STRIP   = #xstrip -k $@ # uncomment for a "production" version
  30.  
  31. DEFS =  -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_SETVBUF=1 -DHAVE_BZERO=1 \
  32.  -DHAVE_RINDEX=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1
  33.  
  34. LDEFS = -DHAVE_SGTTY_H=1 -Dunix -DDOTS
  35.  
  36. #if '-mshort' used turn on definition of EXT
  37. MSHORT = #-mshort
  38. EXT = #16
  39.  
  40. LIBS = -L../libtxi -llibtxi$(EXT) -ltermcap$(EXT) -liio$(EXT)
  41. LOADLIBES = $(LIBS)
  42.  
  43. #CFLAGS = -g -Wall
  44. #LDFLAGS = -g
  45. CFLAGS = -pipe -O2 -fomit-frame-pointer $(MSHORT) -Wall
  46. LDFLAGS = $(CFLAGS) -Xlinker -x -v
  47.  
  48. # Comma-separated list of directories in which to look for info files.
  49. DEFAULT_INFOPATH = .,$(infodir)
  50.  
  51. # Where info files go.
  52. infodir = c:\\gnu\\info
  53.  
  54. #### End of system configuration section. ####
  55.  
  56. SRCS =  makeinfo.c
  57. OBJS =  makeinfo.o
  58.  
  59. PROGS = makeinfo.ttp
  60.  
  61. all: $(PROGS) # makeinfo.info  # do not do that with cross-compiler
  62. sub-all: all
  63.  
  64. .c.o:
  65.     $(CC) -c $(CPPFLAGS) -I. -I$(srcdir) -I$(common) $(LDEFS) $(DEFS) \
  66.     $(CFLAGS) $<
  67.  
  68. $(PROGS): $(OBJS) ../libtxi/libtxi$(EXT).olb
  69.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LOADLIBES)
  70.     $(STRIP)
  71.  
  72. makeinfo.o: makeinfo.c $(common)/getopt.h
  73.  
  74. makeinfo.info: $(PROGS) makeinfo.texi
  75.     ./$(PROGS) --no-split -I$(srcdir) makeinfo.texi
  76.  
  77. clean:
  78.     $(RM) *.o compile.err a.out core core.*
  79.  
  80. mostlyclean: clean
  81.  
  82. distclean: clean
  83.     $(RM) $(PROGS)
  84.  
  85. realclean: distclean
  86.     $(RM) TAGS
  87.     $(RM) makeinfo.info
  88.  
  89. # Prevent GNU make v3 from overflowing arg limit on SysV.
  90. .NOEXPORT:
  91.  
  92. # eof
  93.